<template>
    <div>
    <div class="monthly-title">
        <div class='monthly-date'>
        {{day.date}}
        </div>
        <div class="monthly-get">
            收入:&nbsp;{{day.total_get_price.toFixed(2)}}
        </div>
        <div class="monthly-pay">
            支出:&nbsp;{{day.total_pay_price.toFixed(2)}}
        </div>
        </div>
    <CommitRecord v-for="record in day.bills" :key="record.id" :record="record" ></CommitRecord>
  </div>
</template>

<script>
import CommitRecord from './CommitRecord/index.vue';
export default{
    name: "MonthlyCommit",
    components: { CommitRecord },
    props:['day'],
    methods:{
        
    }
}

</script>

<style scoped>
    *{
        margin: 0;
        border: 0;
    }
    .monthly-title{
        height: 5vh;
        background-color: skyblue;
        text-align: left;
        line-height: 5vh;
    }


    .monthly-date{
        width: 38vw;
        height: 5vh;
        /* display: inline-block; */
        margin-left: 3vw;
        margin-top: 0;
        line-height: 5vh;
        float: left;
        color: white;
        /* background-color:black; */
          
    }


    .monthly-get,.monthly-pay{
        width:26vw;
        height: 100%;
        margin-left: 3vw;
        /* background-color: black; */
        float: left;
        color: white;
    }
</style>